﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCLHUserInfo_BH.ascx.cs" Inherits="Web.Controls.UCLHUserInfo_BH" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<script type="text/javascript">

    function YONGHUH_KEYPRESS() {
        if (event.keyCode == 13) {
            setTimeout(function() {

                },
                0);
            event.preventDefault ? event.preventDefault() : (event.returnValue = false);
            if (txtYongHuH.GetText() == '') {
                alert('请输入用户号。');
                txtYongHuH.Focus();
                return;
            }
            ASPxCallback1.PerformCallback();
        }
    }

    function ASPxCallbackCommonComplete(rs) {
        //debugger;
        var arr = rs.split('|');
        var type = arr[0];
        var state = arr[1];
        if (state != "0") {
            alert(arr[2]);
        } else {
            btnActPerform.onClick();
        }
    }
</script>
<dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
<dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallbackCommonComplete(e.result);}"></dx:ASPxCallback>
<div style="display: none;">
    <dx:ASPxButton ID="btnActPerform" ClientInstanceName="btnActPerform" runat="server" Text="ASPxButton" OnClick="btnActPerform_Click" UseSubmitBehavior="false"></dx:ASPxButton>
</div>
<table>
    <tr>
        <td align="right">
            <dx:ASPxLabel ID="lblYongHuH" runat="server" Text="用户号："></dx:ASPxLabel>
        </td>
        <td style="width: 150px">
            <dx:ASPxTextBox ID="txtYongHuH" ClientInstanceName="txtYongHuH" runat="server" Text="" Width="100%" ClientSideEvents-KeyUp="function(s,e){YONGHUH_KEYPRESS(); }"></dx:ASPxTextBox>
        </td>
        <td align="right" style="white-space: nowrap; width: 15%;">
            &nbsp;&nbsp;&nbsp;登记文号：
        </td>
        <td style="width: 150px">
            <dx:ASPxTextBox ID="txtLaiHanBH" BackColor="#e3f2f9" disabled="disabled" ForeColor="#c0c0c0" runat="server" Width="100%" Text=""></dx:ASPxTextBox>
        </td>
    </tr>
</table>